import { Code, CreateDate, DateTime, Entity, Mobile, Money, PrimaryUuid, Realname, UpdateDate, Uuid } from "@sker/core";

@Entity({
    name: 'kd_trans'
})
export class KdTrans {

    @PrimaryUuid()
    id: string;

    @Uuid({ comment: '代理' })
    agent_id: string;

    @Uuid({ comment: '店铺' })
    shop_id: string;

    @Uuid({ comment: '跑腿', nullable: true })
    shop_member_id: string;

    @Uuid({ comment: '接单人', nullable: true })
    member_id: string;

    @Uuid({ comment: '订单编号' })
    order_id: string;

    @Uuid({ comment: '快递', nullable: true })
    trans_comp_id: string;

    @Code({ comment: '物流号', nullable: true })
    transn: string;

    @Money({ comment: '实付费用', nullable: true, default: 0 })
    fee: number;

    @Code({ comment: '状态' })
    status: string;

    @Code({ comment: '支付状态', nullable: true, default: '0' })
    pay_status: string;

    @Code({ comment: '支付方式', nullable: true, default: '' })
    pay_type: string;

    @Code({ comment: '支付单号', nullable: true, default: '' })
    tid: string;

    @DateTime({ comment: '支付时间', nullable: true })
    pay_time: Date;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}